import React, { Component } from 'react';
import Cmp2 from './Cmp2';

// 统一数据源
import { Consumer } from '../context/store'

class Cmp1 extends Component {
  render() {
    return (
      <div>
        <Cmp2 />
        {/* <Consumer>
          {value => <h3>{value}</h3>}
        </Consumer> */}
      </div>
    );
  }
}

export default Cmp1;
